import request from '@/utils/request'

// 查询历史信息查询列表
export function listIdleip(query,rou) {
  return request({
    url: '/ipmanagement/idleip/list/'+rou,
    method: 'get',
    params: query
  })
}

// 查询历史信息查询详细
export function getIdleip(id) {
  return request({
    url: '/ipmanagement/idleip/' + id,
    method: 'get'
  })
}

// 新增历史信息查询
export function addIdleip(data,rou) {
  return request({
    url: '/ipmanagement/idleip/'+rou,
    method: 'post',
    data: data
  })
}

// 修改历史信息查询
export function updateIdleip(data,rou) {
  return request({
    url: '/ipmanagement/idleip/'+rou,
    method: 'put',
    data: data
  })
}

// 删除历史信息查询
export function delIdleip(id) {
  return request({
    url: '/ipmanagement/idleip/' + id,
    method: 'delete'
  })
}
